// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "ProceduralMeshComponent.h"
#include "RuntimeMeshActor.generated.h"

UCLASS()
class CLASS15_API ARuntimeMeshActor : public AActor
{
	GENERATED_BODY()
	
public:
	ARuntimeMeshActor();

	UPROPERTY(VisibleAnywhere)
	UProceduralMeshComponent* _mesh;

protected:
	virtual void BeginPlay() override;

	void UpdateMesh(float x, float y, bool firstCreated);
	void PlayAnimation();
	float _angle; bool _playing;

public:
	virtual void Tick(float DeltaTime) override;

};
